package com.gismore.demo.job;

import org.springframework.batch.item.ItemWriter;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * Created by lei on 2017/6/9.
 */
@Component
public class HelloWriter implements ItemWriter<String> {

	@Override
	public void write(List<? extends String> list) throws Exception {
		list
			.stream()
			.forEach(System.out::println);
	}
}
